package com.gzhryc.system.dao;

import java.sql.SQLException;

import com.gzhryc.jdbc.BaseDao;
import com.gzhryc.jdbc.Conditions;
import com.gzhryc.system.dao.db.ManagerRole;

public class ManagerRoleDao extends BaseDao<ManagerRole>{

	public ManagerRoleDao(String jdbcKey) {
		super(jdbcKey);
	}

	public int deleteByManagerId(Long managerId) throws SQLException{
		Conditions condition = new Conditions(ManagerRole.class);
		condition.and().is("managerId", managerId);
		return this.deleteByCondition(condition);
	}
}
